package com.ws.lv.service;

import com.ws.lv.bean.Slideshow;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

public interface SlideshowService {
    int insertSlideshow(Slideshow slideshow);

    List<Slideshow> selectSlideshows (@Param("slideshow_state")Integer slideshow_state, @Param("order")String order);

    int updateStateDisplay(int slideshow_id);

    int updateStateHide(int slideshow_id);

    List<Slideshow> selectSlideshowByRouteId(ArrayList<Integer> slideshow_routeIds);

    int deleteSlideshows(ArrayList<Integer> slideshow_routeIds);

    Slideshow selectSlideshowByRoute_id(int route_id);

    int updateSlideshow(Slideshow slideshow);

    int deleteSlideshow(int slideshow_id);

    Slideshow selectSlideshowById(int slideshow_id);

    int updateSlideshowById(Slideshow slideshow);

}
